<html>
<head>
</head>

<script type="text/javascript" src="jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="channel.js"></script>
<script type="text/javascript" src="cis.js"></script>

<script type="text/javascript">

$(document).ready(function() {

	<?php 
	
	include 'Channel.php';
	
	$channel = Channel::createChannel();
	
	echo "var cid = ". $channel->getId();
	
	?>
	
	$("#card").cis({initiator:true, roomKey:123, me:"godinho", channelId : cid});
});

</script>

<body>

<div id="card"> </div>

</body>
</html>